package com.dongjiantong.openplatform.entity;/**
 * Created by cao on 2017/12/13.
 */

/**
 * @author cao
 * @create 2017-12-13 下午8:30
 **/

import java.beans.ConstructorProperties;
import java.util.List;
import java.util.Map;
import org.springframework.web.multipart.MultipartFile;

public class OPUploadFile {
    Map<String, List<MultipartFile>> mappedMultipartFiles;

    public Map<String, List<MultipartFile>> getMappedMultipartFiles() {
        return this.mappedMultipartFiles;
    }

    public void setMappedMultipartFiles(Map<String, List<MultipartFile>> mappedMultipartFiles) {
        this.mappedMultipartFiles = mappedMultipartFiles;
    }

    @Override
    public boolean equals(Object o) {
        if(o == this) {
            return true;
        } else if(!(o instanceof OPUploadFile)) {
            return false;
        } else {
            OPUploadFile other = (OPUploadFile)o;
            if(!other.canEqual(this)) {
                return false;
            } else {
                Object this$mappedMultipartFiles = this.getMappedMultipartFiles();
                Object other$mappedMultipartFiles = other.getMappedMultipartFiles();
                if(this$mappedMultipartFiles == null) {
                    if(other$mappedMultipartFiles != null) {
                        return false;
                    }
                } else if(!this$mappedMultipartFiles.equals(other$mappedMultipartFiles)) {
                    return false;
                }

                return true;
            }
        }
    }

    public boolean canEqual(Object other) {
        return other instanceof OPUploadFile;
    }

    @Override
    public int hashCode() {
        //int PRIME = true;
        int result = 1;
        Object $mappedMultipartFiles = this.getMappedMultipartFiles();
         result = result * 31 + ($mappedMultipartFiles == null?0:$mappedMultipartFiles.hashCode());
        return result;
    }

    @Override
    public String toString() {
        return "OPUploadFile(mappedMultipartFiles=" + this.getMappedMultipartFiles() + ")";
    }

    @ConstructorProperties({"mappedMultipartFiles"})
    public OPUploadFile(Map<String, List<MultipartFile>> mappedMultipartFiles) {
        this.mappedMultipartFiles = mappedMultipartFiles;
    }
}